package com.trmp.commons.exception;

public class ServerException extends Exception
{
    private static final long serialVersionUID = -1050624789625303799L;
    
    private String errorCode = null;
    
   
    public ServerException()
    {
        super();
    }
    

    public ServerException(String message)
    {
        super(message);
        setErrorCode(message);
    }
    

    public ServerException(String message, String errorCode)
    {
        super(message);
        setErrorCode(errorCode);
    }
    

    public ServerException(Throwable t)
    {
        super(t);
    }
    

    public ServerException(Throwable t, String errorCode)
    {
        super(t);
        setErrorCode(errorCode);
    }
    
    public String getErrorCode()
    {
        return errorCode;
    }
    
    public void setErrorCode(String errorCode)
    {
        this.errorCode = errorCode;
    }
}
